package com.tanhua.manage.utils;


import java.time.Duration;

public class FreezerTimeTypeUtils {

    //冻结时间，1为冻结3天，2为冻结7天，3为永久冻结
    public static Duration getTime(Integer time){


        if (time==2){

            return Duration.ofDays(7);

        }else if (time==1){

            return Duration.ofDays(3);

        }else {

            return null;

        }

    }


}
